package com.bjc.repository;

import com.bjc.pojo.Account;

import java.util.List;

/**
 * @program: airmybatis
 * @description:
 * @author: bjc parameterType测试
 * @create: 2020-08-31 11:29
 */
public interface AccountRepository {

    int save(Account account);

    int update(Account account);

    int deleteById(long id);

    List<Account> findAll();

    Account findById(long id);

    Account findByName(String name);

    Account findById2(Long id);

    Account findByNameAndAge(String name,int age);

}
